<?php
class MemberViewModel extends ViewModel {
	public $viewFields = array(
		'CommonMemberProfile' 	=> array('realname', 'mobile', 'gender', 'resideprovince', 'residecity', 'residedist', 'address', 'occupation'
			,'icq', 'yahoo', 'alipay', 'idcard', 'idcardtype', 'birthyear', 'birthmonth', 'birthday', 'constellation', 'zodiac', 'field1'),
		'CommonMember'		=> array('username','adminid', 'groupid', 'credits', 'email', 'regdate', '_on' => "CommonMemberProfile.uid = CommonMember.uid"),
		'CommonUsergroup'   => array('grouptitle', '_on' => "CommonMember.groupid = CommonUsergroup.groupid"),
		'CommonMemberCount' => array('*', '_on' => "CommonMemberCount.uid = CommonMember.uid"),
	);
}